import request from '@/utils/request';
import { other } from './prefix';

const peopleSayManage = {
  // 查询文章列表
  getPeopleSay(params) {
    return request.get(other + '/evaluate', { params });
  },
  // 创建文章
  setAbout(params) {
    return request.post(other + '/evaluate', params);
  },
  // 更新文章
  updAbout(id, params) {
    return request.post(other + '/evaluate/' + id, params);
  },
  // 删除文章
  delAbout(id) {
    return request.delete(other + '/evaluate/' + id);
  },
  // 上传头像
  uploadPhoto(id, params) {
    return request.post(other + '/evaluate/' + id + '?op=upload_file&name=photo', params);
  },
};

export default peopleSayManage;
